package com.esp.soccertutor.fbreader.fbreader;

import com.esp.soccertutor.zlibrary.core.options.ZLBooleanOption;
import com.esp.soccertutor.zlibrary.text.view.style.ZLTextStyleCollection;

public class ChangeHypenAction extends FBAction{

	private boolean value; 
	public ChangeHypenAction(FBReaderApp fbreader,boolean Value) {
		super(fbreader);
		value=Value;
	}

	@Override
	public void run() {
		ZLBooleanOption option =ZLTextStyleCollection.Instance().getBaseStyle().AutoHyphenationOption;
		option.setValue(value);
		Reader.clearTextCaches();
		Reader.getViewWidget().repaint();
		
	}

}
